package vashion.azeroth.core.item.dao;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.dao.DaoRepository;
import vashion.azeroth.core.item.pojo.ItemDO;
import vashion.azeroth.core.item.query.ItemQueryDO;

import java.util.List;
import java.util.Map;

/**
 * Created by tingting on 15/9/1.
 * 商品dao
 */
@DaoRepository
public interface ItemDao extends BaseDao<ItemDO> {

    long saveWithId(ItemDO itemDO);

    List<ItemDO> queryItem(ItemQueryDO itemQueryDO);

    List<ItemDO> querySameCodeItem(ItemQueryDO itemQueryDO);

    Integer countQueryItem(ItemQueryDO itemQueryDO);

    List<String> getRecommendTitle(String word);

    boolean updateSkuAndSale(Map<String, Object> paramMap);
}
